﻿using System;
using System.Windows.Controls;
using System.Collections.Generic;
using System.Windows.Media.Media3D;

using _3DTools;

namespace SBPweb.MediaCenter.Tools.WPF.Controls
{
    public class CarouselInteractiveVisual3D : InteractiveVisual3D
    {

        #region Private members

        private int pRow;
        private int pCol;
        private int pIndex;
        private CarouselView pCointainingPLV;
        private CarouselItem pItem;

        private List<UserControl> pItems = new List<UserControl>();

        #endregion

        #region Constructor logic

        public CarouselInteractiveVisual3D()
            : base()
        {
        }

        public CarouselInteractiveVisual3D(CarouselView containingPLV, int row, int col, int index)
        {
            Row = row;
            Column = col;
            Index = index;
            ContainingPLV = containingPLV;
        }

        #endregion

        #region Public property accessors

        public CarouselView ContainingPLV
        {
            get { return pCointainingPLV; }
            set { pCointainingPLV = value; }
        }

        public int Row
        {
            get { return pRow; }
            set { pRow = value; }
        }

        public int Column
        {
            get { return pCol; }
            set { pCol = value; }
        }

        public int Index
        {
            get { return pIndex; }
            set { pIndex = value; }
        }

        public CarouselItem Item
        {
            get { return pItem; }
            set { pItem = value; }
        }

        //public List<UserControl> Items
        //{
        //    get { return pItems; }
        //}

        #endregion

        #region Methods

        public void AddUserControl(UserControl control)
        {
            Visual3D vs3d = new ModelVisual3D();
            base.AddVisual3DChild(vs3d);
        }

        public void RemoveUserControl(UserControl control)
        {
        }

        #endregion

    }
}
